<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<div id="login_area">
	<form:form action="home" modelAttribute="user" method="post">
		<fieldset id="login_field">
			<legend>Login</legend>

			<div>
				<form:input path="email" placeholder="User Name" cssClass="first"/>
			</div>
			<div>
				<form:errors path="email" cssClass="error" />
			</div>

			<div>
				<form:password path="password" placeholder="Password" />
			</div>
			<div>
				<form:errors path="password" cssClass="error" />
			</div>
			<div><p class="error">${message}</p> </div>
			<div>
				<input type="submit" value="Login" />
			</div>
			<div>
				<a href="reset">Forgot your password?</a>
			</div>
		</fieldset>
	</form:form>
</div>